import request from '@/utils/request'


export function studentPage(data) {
  return request({
    url: '/students/page',
    method: 'post',
    data
  })
}

export function changStudentState(data) {
  return request({
    url: '/students/state',
    method: 'post',
    data
  })
}


export function studentOne(id) {
  return request({
    url: '/students/one/' + id,
    method: 'get',
  })
}

export function student_insert_edit(data) {
  return request({
    url: '/students/insert/edit',
    method: "post",
    data
  })
}

export function studentDelete(id) {
  return request({
    url: '/students/remove/' + id,
    method: "get",
  })
}
